package classes;

import java.sql.Time;

public class TimeSlot {
	
	int id;
	int driverId;
	String weekDay, driverName;
	Time startTime;
	Time endTime;
	
	public TimeSlot(){}
	
	public TimeSlot(int id, int driverID, String weekDay, Time startTime, Time endTime, String driverName){
		this.id = id;
		this.weekDay = weekDay;
		this.startTime = startTime;
		this.endTime = endTime;
		this.driverId = driverID;
		this.driverName = driverName;
		
	}
	
	public TimeSlot(int driverID, String weekDay, Time startTime, Time endTime, String driverName){
		this.weekDay = weekDay;
		this.startTime = startTime;
		this.endTime = endTime;
		this.driverId = driverID;
		this.driverName = driverName;
		
	}
	
	

	public String getDriverName() {
		return driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	public int getDriverId() {
		return driverId;
	}

	public void setDriverId(int driverId) {
		this.driverId = driverId;
	}

	public String getWeekDay() {
		return weekDay;
	}

	public void setWeekDay(String weekDay) {
		this.weekDay = weekDay;
	}

	public Time getStartTime() {
		return startTime;
	}

	public void setStartTime(Time startTime) {
		this.startTime = startTime;
	}

	public Time getEndTime() {
		return endTime;
	}

	public void setEndTime(Time endTime) {
		this.endTime = endTime;
	}

	public int getId() {
		return id;
	}
	
	@Override
	public String toString(){
		return weekDay +" "+startTime+" - "+endTime;
	}

	
	

}
